package com.xintonghua.bussiness.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：wanxianyi
 * 时间：2018/4/1.
 * 包名：com.xintonghua.bussiness.bean
 */

public class CollectBean implements Parcelable {

    /**
     * img : ../../img/upload/hy-upload-product1_03.jpg
     * <p>
     * create_time : 2018-03-10 19:33:00
     * type_id : 1
     * id : 1
     * detail : test
     * title : 高级权限里显示状态是已获得，不过晚些时候再调用接口的时候就通过了。还是谢谢你的回答。:-)
     */

    private String img;
    private String create_time;
    private int type_id;
    private int id;
    private String detail;
    private String title;
    private String url;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public int getType_id() {
        return type_id;
    }

    public void setType_id(int type_id) {
        this.type_id = type_id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public CollectBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.img);
        dest.writeString(this.create_time);
        dest.writeInt(this.type_id);
        dest.writeInt(this.id);
        dest.writeString(this.detail);
        dest.writeString(this.title);
        dest.writeString(this.url);
    }

    protected CollectBean(Parcel in) {
        this.img = in.readString();
        this.create_time = in.readString();
        this.type_id = in.readInt();
        this.id = in.readInt();
        this.detail = in.readString();
        this.title = in.readString();
        this.url = in.readString();
    }

    public static final Creator<CollectBean> CREATOR = new Creator<CollectBean>() {
        @Override
        public CollectBean createFromParcel(Parcel source) {
            return new CollectBean(source);
        }

        @Override
        public CollectBean[] newArray(int size) {
            return new CollectBean[size];
        }
    };
}
